﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace OrmSmackdown.NHibernate.FluentMappings
{
    public class PersonMap : ClassMap<Person>
    {
        public PersonMap()
        {
            Id(x => x.PersonId);
            Map(x => x.FirstName);
            Map(x => x.LastName);
            Map(x => x.Email);
            References(x => x.Role);
        }
    }
}
